import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

const routes: Routes = [
  {
    // 首页
    path: 'home',
    loadChildren: './pages/home-inertia/home-inertia.module#HomeInertiaModule'
  },
  {
    // 加入我们
    path: 'add-we',
    loadChildren:
      './pages/add-we-inertia/add-we-inertia.module#AddWeInertiaModule'
  },
  {
    // WEB开发方向介绍页
    path: 'web-develop',
    loadChildren:
      './pages/web-develop-introduce-inertiad/web-develop-introduce-inertiad.module#WebDevelopIntroduceInertiadModule'
  },
  {
    // 微信小程序开发介绍页
    path: 'wechat',
    loadChildren:
      './pages/wechat-introduce-inertiad/wechat-introduce-inertiad.module#WechatIntroduceInertiadModule'
  },
  {
    // UI设计介绍页
    path: 'uidesign',
    loadChildren:
      './pages/uidesign-introduce-inertiad/uidesign-introduce-inertiad.module#UidesignIntroduceInertiadModule'
  },
  {
    // 单片机介绍页
    path: 'singlechip',
    loadChildren:
      './pages/singlechip-inertiad/singlechip-inertiad.module#SinglechipInertiadModule'
  },
  {
    // 提交申请表成功页面
    path: 'submitsuccess',
    loadChildren:
      './pages/submit-success-inertiad/submit-success-inertiad.module#SubmitSuccessInertiadModule'
  },
  {
    // 作品详情
    path: 'opus-details/:id',
    loadChildren:
      './pages/opusdetails-inertia/opusdetails-inertia.module#OpusdetailsInertiaModule'
  },
  {
    // 作品详情
    path: 'oeuvre/opus-details/:id',
    loadChildren:
      './pages/opusdetails-inertia/opusdetails-inertia.module#OpusdetailsInertiaModule'
  },
  {
    // 全部作品
    path: 'oeuvre',
    loadChildren:
      './pages/oeuvre-inertia/oeuvre-inertia.module#OeuvreInertiaModule'
  },
  {
    path: 'updateresource',
    loadChildren: './pages/updateresource-inertia/updateresource-inertia.module#UpdateresourceInertiaModule'
  },
  {
    path: '',
    redirectTo: '/home',
    pathMatch: 'full'
  }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule {}
